#ifndef CLIENTCONNECTNETWORKEVENT_H_
#define CLIENTCONNECTNETWORKEVENT_H_

#include <string>
#include "NetworkEvent.h"

class ClientConnectNetworkEvent : public NetworkEvent
{
public:
    struct Data
    {
        char clientName[20];
    };

    struct Message
    {
        Header header;
        Data data;
    };

    ClientConnectNetworkEvent(const char* clientName);
    ClientConnectNetworkEvent(const Header& header, const Data& data);
    virtual ~ClientConnectNetworkEvent();

    virtual void* getMessageBlob();
    virtual size_t getMessageBlobSize();

    virtual GameState* visitLobbyState(LobbyState* lobbyState) const;

private:
    Message message;
};

#endif
